﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp8
{
    class Square: Shape//正方形类
    {
        public double sideLen;
        public double SideLen { get; set; }
        public override void GetArea()
        {
            Console.WriteLine("进入成功请输入变长");
            this.sideLen = double.Parse(Console.ReadLine());

            double sum = this.sideLen * this.sideLen;
            Console.WriteLine("面积是" + sum);
            base.GetArea();
        }
    }
}
